<?php
include 'checkLogin.php';
@$worker_id = $_REQUEST['worker_id'];
@$role_id = $_REQUEST['role_id'];

include 'db/li.php';
@$flog = dbUpdate('update worker set role_id=:role_id where id=:id',array('role_id'=>$role_id,'id'=>$worker_id));

if(!$flog){
	$mes = "升职失败";
	include 'branchNameList.php';
	die;
}
header('Refresh:0;url=index.php');